#include <iostream>
#include <vector>
#include "MyVector.hpp"

using namespace std;

int main()
{
    MyVector<int> vec;
    cout << "capacity: " << vec.capacity() << ", size: " << vec.size() << endl;
    vec.push_back(1);
    vec.push_back(2);
    vec.push_back(3);
    vec.push_back(4);
    vec.push_back(5);
    // for(int i = 0; i < vec.size(); i++)
    //     cout << vec.at(i) << ", ";
    // cout << "\n";
    cout << vec;
    // vec.insert(1, 5);
    vec.remove(1);
    // for(int i = 0; i < vec.size(); i++)
    //     cout << vec.at(i) << ", ";
    // cout << "\n";
    cout << vec;
    cout << "capacity: " << vec.capacity() << ", size: " << vec.size() << endl;

#if 0
    vector<int> vec;
    cout << "capacity: " << vec.capacity() << ", size: " << vec.size() << endl;
    // 尾插
    vec.push_back(1);
    vec.push_back(2);
    vec.push_back(3);
    vec.push_back(4);
    vec.push_back(5);
    cout << "capacity: " << vec.capacity() << ", size: " << vec.size() << endl;
#endif
    
    return 0;
}